<?php

use Phalcon\Mvc\Application;

//if( $_GET['v'] )
//{
//    exit( Phalcon\Version::get() );
//}

error_reporting( E_ALL );

defined( 'BASE_PATH' ) || define( 'BASE_PATH', realpath( dirname( __FILE__ ) . '/../' ) . '/' );
defined( 'APP_DIR' ) || define( 'APP_DIR', realpath( dirname( __FILE__ ) . '/../apps' ) . '/' );

$debug = new \Phalcon\Debug();
$debug->listen();
$debug->setUri('/');

/**
 * Include services
 */
require __DIR__ . '/../config/services.php';

/**
 * Handle the request
 */
$application = new Application( $di );

/**
 * Include modules
 */
require __DIR__ . '/../config/modules.php';

echo $application->handle()->getContent();
try{
    
} catch(Exception $e){
    echo $e->getMessage();
}
